import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'app_color.dart';

//通用占位盒子封装和分割线

class AppGaps {
  //水平间隔
  static Widget hGaps2w = SizedBox(
    width: 2.w,
  );
  static Widget hGaps3w = SizedBox(
    width: 3.w,
  );
  static Widget hGaps5w = SizedBox(
    width: 5.w,
  );
  static Widget hGaps10w = SizedBox(
    width: 10.w,
  );
  static Widget hGaps15w = SizedBox(
    width: 15.w,
  );
  static Widget hGaps20w = SizedBox(
    width: 20.w,
  );
  static Widget hGaps25w = SizedBox(
    width: 25.w,
  );
  static Widget hGaps30w = SizedBox(
    width: 30.w,
  );
  static Widget hGaps50w = SizedBox(
    width: 50.w,
  );

  //垂直间隔
  static Widget vGaps1w = SizedBox(
    height: 1.w,
  );
  static Widget vGaps2w = SizedBox(
    height: 2.w,
  );
  static Widget vGaps3w = SizedBox(
    height: 3.w,
  );
  static Widget vGaps5w = SizedBox(
    height: 5.w,
  );
  static Widget vGaps10w = SizedBox(
    height: 10.w,
  );
  static Widget vGaps15w = SizedBox(
    height: 15.w,
  );
  static Widget vGaps20w = SizedBox(
    height: 20.w,
  );
  static Widget vGaps25w = SizedBox(
    height: 25.w,
  );
  static Widget vGaps30w = SizedBox(
    height: 30.w,
  );
  static Widget vGaps50w = SizedBox(
    height: 50.w,
  );

  static Widget hLine = SizedBox(
    height: 1.w,
    width: double.infinity,
    child: DecoratedBox(decoration: BoxDecoration(color: AppColor.greyECEC)),
  );

  static Widget vLine = SizedBox(
    width: 1.w,
    height: double.infinity,
    child: DecoratedBox(decoration: BoxDecoration(color: AppColor.greyECEC)),
  );
}
